package com.qqtech.qquan.sales.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.sales.dao.SalesBaseDao;
import com.qqtech.qquan.sales.model.*;

@Service
public class SalesBaseServiceImpl extends BaseServiceImpl<SalesBase>
		implements SalesBaseService {
	public static final Logger log = LoggerFactory.getLogger(SalesBaseServiceImpl.class);
	
	@Resource
	private SalesBaseDao salesBaseDao;

	@Override
	protected BaseDao<SalesBase> getBaseDao() {
		return salesBaseDao;
	}

	@Override
	public SalesBaseVo getByShopId(Integer shopId) {
		return salesBaseDao.getByShopId(shopId);
	}

	@Override
	public SalesBaseVo getByTarget(Integer target, Integer shopId) {
		return salesBaseDao.getByTarget(target, shopId);
	}
	
}